package com.ming.customer;

import com.ming.netty.NettyClient;
import com.ming.publicinterface.HelloService;

public class ClientBootstrap {

    public static final String providerName= "HelloService#hello#";

    public static void main(String[] args) throws InterruptedException {
        NettyClient customer = new NettyClient();

        HelloService service = (HelloService) customer.getBean(HelloService.class, providerName);

        while (true){
            Thread.sleep(10*1000);
            String res = service.hello("你好 dubbo");
            System.out.println(res);
        }
    }
}
